import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
// 引入mockjs模拟后台数据
import Mock from './mock'
Vue.config.productionTip = false

// 使用axios异步请求
import Axios from 'axios'
Vue.prototype.$axios = Axios;

//使用mint-ui库
import {Swipe, SwipeItem} from 'mint-ui'
import "mint-ui/lib/style.css"

// 图片懒加载
import VueLazyLoad from 'vue-lazyload'
Vue.use(VueLazyLoad,{
    loading:'../public/img/footer/timg.gif'
})
// 引入toast组件
import{Toast} from 'mint-ui'
Vue.prototype.$toast = Toast;

// 使用轮播组件
Vue.component(Swipe.name,Swipe)
Vue.component(SwipeItem.name,SwipeItem)
//创建bus实例对象
var bus = new Vue()
//全局引入footer
import Footer from './components/shopping/footer'
Vue.component(Footer.name,Footer);
new Vue({
  router,
  store,
  data:{
    bus
  },
  render: h => h(App)
}).$mount('#app')
